<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CompanyManagement extends Model
{
    protected $table = 'company_management';

    protected $fillable = ['management_id', 'company_id'];

    public $timestamps = false;


    public function company_info()
    {
        return $this->hasOne(Company::class, 'id', 'company_id');
    }

    public function management_info()
    {
        return $this->hasOne(Management::class, 'id', 'management_id');
    }
}
